package com.probox.common.core.enums;
/**
 * 常用的状态
 *
 *
 * @date 2021-05-25
 */
public enum SupplierIsAuthStatus {
    not_auth ("0","待认证"),
    authenticated("1","已认证"),
    all("all","all");//供应商缓存


    private SupplierIsAuthStatus(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(SupplierIsAuthStatus oe: SupplierIsAuthStatus.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
